package com.njxzc.demo.mapper.admin;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.njxzc.demo.entity.CartEntity;
import com.njxzc.demo.entity.GoodsEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.yaml.snakeyaml.scanner.Constant;

import java.util.List;
import java.util.Map;

@Repository
public interface GoodsMapper extends BaseMapper<GoodsEntity> {
    List<Map<String, Object>> myCartGoods(Integer id);

    IPage<GoodsEntity> iPageGoods(IPage<GoodsEntity> iPage, @Param(Constants.WRAPPER) LambdaQueryWrapper<GoodsEntity> lambdaQueryWrapper);

    IPage<GoodsEntity> iPageMyFocusGoods(IPage<GoodsEntity> iPage, @Param(Constants.WRAPPER) LambdaQueryWrapper<GoodsEntity> lambdaQueryWrapper);

}
